<?php
if(isset($related) && $related){
?>
<div class="relatedsoftwares clearfix">
        <h3>
                <span>Ứng dụng liên quan và ứng dụng thay thế</span>
        </h3>
        <ul>
               <?php 
			   
			   foreach($related as $r){
			   ?>
			    <li class="clearfix">
                    <a href="<?php echo soft_url($r,$r->CAT_CODE);?>">
                        <img src="<?php echo $r->SOFT_THUMB;?>" alt="<?php echo $r->SOFT_NAME;?>"/>
                        <span><?php echo $r->SOFT_NAME;?></span>
                            <i><?php echo $r->SOFT_NAME_DESCRIPTION;?></i>
                                                    <em><?php echo number_format($r->SOFT_DOWN);?> <i>Lượt tải</i></em>
</a>
                </li> 
			   <?php
			   }
			   
			   ?>
               
        </ul>
    </div>
	
	
	<?php
	}?>